<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%-- <link href="<c:url value='/css/style.css'/>" rel="stylesheet" type="text/css"/> --%>

<head>
<fmt:setBundle basename="message" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link href="<c:url value='/css/default.css'/>" rel="stylesheet" type="text/css"/>
<title><fmt:message key="showpriority.title"/> </title>
</head>
<body>
<%@include file="Header.jsp" %>
<div id="wrapper">	
    <div id="page-wrapper">
		<div id="page">
		<%@include file="Menu.jsp" %>
		
			<div id="content">
				<div>
 					<h2><fmt:message key="label.priority"/></h2>
 					<c:url var="url" scope="page" value="/ManagePriority.jsp">
 					<c:param name="code" value=""/>
 					<c:param name="level" value=""/>
 					<c:param name="insert" value="true"/>
 					</c:url>
 					<a href="${url}"><fmt:message key="showpriority.add"/></a>
        <br/><br/>
        <table class="table-view">
            <tr>
               <th>#</th>
                <th><fmt:message key="label.priority.code"/></th>
                <th><fmt:message key="label.priority.level"/></th>
                <th><fmt:message key="label.edit"/></th>
                <th><fmt:message key="label.delete"/></th>
            </tr>
            <c:forEach var="pri" items="${priority}" varStatus="status">
                <tr class="${status.index%2==0?'even':'odd'}">
                    <td class="id">${status.index + 1}</td>
                    <td class="small">${pri.code}</td>
                    <td>${pri.level}</td>
                    <td class="edit">
                        <c:url var="updurl" scope="page" value="/ManagePriority.jsp">
                            <c:param name="code" value="${pri.code}"/>
                            <c:param name="level" value="${pri.level}"/>                            
                            <c:param name="update" value="true"/>
                        </c:url>
                        <a href="${updurl}"><fmt:message key="label.edit"/></a>
                        </td>                        
                        <td class="delete">
                        <c:url var="delurl" scope="page" value="/DeletePriority">
                            <c:param name="code" value="${pri.code}"/>
                        </c:url>
                        <a href="${delurl}"><fmt:message key="label.delete"/></a>
                    </td>
                </tr>
            </c:forEach>
        </table>
        </div>
			</div>
       </div>
	</div>
</div>
	<%@include file="Footer.jsp" %>
</body>
</html>